<?php
$objRequest 	= $this->_request;
$intCategoryId	= $objRequest->getParam('parentid',0);
$intType		= $objRequest->getParam('type', 0);
if($intCategoryId == 0)
	$strData = '';
else
{
	$objCommon		= new Vfriend_Common();
	$arrSubCate	= $objCommon->getCategory($intCategoryId, $intType, 0, 1);
	$objView 		= Zend_Registry::get('objView');
	$this->view->arrSubCate = $arrSubCate;
	$strData		= $objView->fetch('ajax/subcate.tpl');
}
$arrJson = array('data'=>$strData);
echo $objRequest->getParam('callback') . '(' . Zend_Json::encode($arrJson) . ')';
exit();
?>
